#include "ackKNXStatusCmd.h"

ackKNXStatusCmd::ackKNXStatusCmd(QObject *parent) :
    BaseCmd(parent)
{
    this->m_protocolType = ProtocolType::SWKNXProtol;
    this->m_functionCode = FunctionCode;
}

void ackKNXStatusCmd::unPackage(Package package)
{
    QByteArray body;


    body = package.body();
    if(body.size()==1)
    {
        m_Status = body.at(0);

        printf("KNX m_Status is %d\r\n",m_Status);
    }

}
Package ackKNXStatusCmd::toPackage()
{
    Package package;
    QByteArray body;

    return package;
}

void ackKNXStatusCmd::setKNXStatus(quint8 status)
{
    m_Status = status;
}

quint8 ackKNXStatusCmd::getKNXStatus(){
    return m_Status;
}
